package com.beacon.rpc.provider.service;


import com.beacon.rpc.api.entity.Hi;
import com.beacon.rpc.api.service.HelloService;
import com.beacon.rpc.core.server.RpcService;
import org.springframework.stereotype.Service;

@RpcService(value = HelloService.class)
public class HelloServiceImpl implements HelloService {

    @Override
    public String hi() {
        return "hi rpc";
    }

    @Override
    public String say(String str) {
        return str;
    }

    @Override
    public String sayHi(Hi hi) {
        return hi.getUserName() + " say：" + hi.getSayMsg();
    }

}
